<!--
 * @Author: boyyang
 * @Date: 2022-01-26 17:37:31
 * @LastEditTime: 2022-03-18 21:40:46
 * @LastEditors: boyyang
 * @Description: 
 * @FilePath: \boyyang\src\views\blog\components\blogBackground.vue
-->

<template>
    <div class="blog-background">
        <img src="@/assets/pix1001_4.jpg" />
        <div class="content">
            <slot></slot>
        </div>
    </div>
</template>

<script lang="ts" setup>

</script>

<style scoped lang="scss">
.blog-background {
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;

    .content {
        width: 100%;
        height: 100%;

        position: absolute;
        top: 0;
        left: 0;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
}
</style>
